package com.scalar.chiptrack.adaptor.osep;

public class OSEPWipStatus
{
    private String device;
    private String pkgType;
    private String lotNo;
    private String dateCode;
    private String poNo;
    private String invQty;
    private String wfrQty;
    private String waferTest;
    private String waferInk;
    private String stock;
    private String visualInspection;
    private String dieAttach;
    private String wireBond;
    private String preMoldInspection;
    private String molding;
    private String postMoldCure;
    private String dejunkTrim;
    private String solderPlating;
    private String formSingulation;
    private String bufferStock;
    private String finalTest;
    private String finalVisualInspection;
    private String fgBal;
    private String rcvdDate;
    private String inputDate;
    private String assyODate;
    private String rtnDate;
    private String rRtnDdate;
    private String code;
    private String codeDescription;
    private String processId;
    private String stageName;
    private String tprQty;
    private String fabLotNo;

    public String getDevice() {
        return device;
    }

    public void setDevice(String device) {
        this.device = device;
    }

    public String getPkgType() {
        return pkgType;
    }

    public void setPkgType(String pkgType) {
        this.pkgType = pkgType;
    }

    public String getLotNo() {
        return lotNo;
    }

    public void setLotNo(String lotNo) {
        this.lotNo = lotNo;
    }

    public String getDateCode() {
        return dateCode;
    }

    public void setDateCode(String dateCode) {
        this.dateCode = dateCode;
    }

    public String getPoNo() {
        return poNo;
    }

    public void setPoNo(String poNo) {
        this.poNo = poNo;
    }

    public String getInvQty() {
        return invQty;
    }

    public void setInvQty(String invQty) {
        this.invQty = invQty;
    }

    public String getWfrQty() {
        return wfrQty;
    }

    public void setWfrQty(String wfrQty) {
        this.wfrQty = wfrQty;
    }

    public String getWaferTest() {
        return waferTest;
    }

    public void setWaferTest(String waferTest) {
        this.waferTest = waferTest;
    }

    public String getWaferInk() {
        return waferInk;
    }

    public void setWaferInk(String waferInk) {
        this.waferInk = waferInk;
    }

    public String getStock() {
        return stock;
    }

    public void setStock(String stock) {
        this.stock = stock;
    }

    public String getVisualInspection() {
        return visualInspection;
    }

    public void setVisualInspection(String visualInspection) {
        this.visualInspection = visualInspection;
    }

    public String getDieAttach() {
        return dieAttach;
    }

    public void setDieAttach(String dieAttach) {
        this.dieAttach = dieAttach;
    }

    public String getWireBond() {
        return wireBond;
    }

    public void setWireBond(String wireBond) {
        this.wireBond = wireBond;
    }

    public String getPreMoldInspection() {
        return preMoldInspection;
    }

    public void setPreMoldInspection(String preMoldInspection) {
        this.preMoldInspection = preMoldInspection;
    }

    public String getMolding() {
        return molding;
    }

    public void setMolding(String molding) {
        this.molding = molding;
    }

    public String getPostMoldCure() {
        return postMoldCure;
    }

    public void setPostMoldCure(String postMoldCure) {
        this.postMoldCure = postMoldCure;
    }

    public String getDejunkTrim() {
        return dejunkTrim;
    }

    public void setDejunkTrim(String dejunkTrim) {
        this.dejunkTrim = dejunkTrim;
    }

    public String getSolderPlating() {
        return solderPlating;
    }

    public void setSolderPlating(String solderPlating) {
        this.solderPlating = solderPlating;
    }

    public String getFormSingulation() {
        return formSingulation;
    }

    public void setFormSingulation(String formSingulation) {
        this.formSingulation = formSingulation;
    }

    public String getBufferStock() {
        return bufferStock;
    }

    public void setBufferStock(String bufferStock) {
        this.bufferStock = bufferStock;
    }

    public String getFinalTest() {
        return finalTest;
    }

    public void setFinalTest(String finalTest) {
        this.finalTest = finalTest;
    }

    public String getFinalVisualInspection() {
        return finalVisualInspection;
    }

    public void setFinalVisualInspection(String finalVisualInspection) {
        this.finalVisualInspection = finalVisualInspection;
    }

    public String getFgBal() {
        return fgBal;
    }

    public void setFgBal(String fgBal) {
        this.fgBal = fgBal;
    }

    public String getRcvdDate() {
        return rcvdDate;
    }

    public void setRcvdDate(String rcvdDate) {
        this.rcvdDate = rcvdDate;
    }

    public String getInputDate() {
        return inputDate;
    }

    public void setInputDate(String inputDate) {
        this.inputDate = inputDate;
    }

    public String getAssyODate() {
        return assyODate;
    }

    public void setAssyODate(String assyODate) {
        this.assyODate = assyODate;
    }

    public String getRtnDate() {
        return rtnDate;
    }

    public void setRtnDate(String rtnDate) {
        this.rtnDate = rtnDate;
    }

    public String getrRtnDdate() {
        return rRtnDdate;
    }

    public void setrRtnDdate(String rRtnDdate) {
        this.rRtnDdate = rRtnDdate;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCodeDescription() {
        return codeDescription;
    }

    public void setCodeDescription(String codeDescription) {
        this.codeDescription = codeDescription;
    }

    public String getProcessId() {
        return processId;
    }

    public void setProcessId(String processId) {
        this.processId = processId;
    }

    public String getStageName() {
        return stageName;
    }

    public void setStageName(String stageName) {
        this.stageName = stageName;
    }

    public String getTprQty() {
        return tprQty;
    }

    public void setTprQty(String tprQty) {
        this.tprQty = tprQty;
    }

    public String getFabLotNo() {
        return fabLotNo;
    }

    public void setFabLotNo(String fabLotNo) {
        this.fabLotNo = fabLotNo;
    }

    public int getAssemblyQtyIn()
    {          
        int visualinspection = 0;
        int dieattach = 0;
        int wirebond = 0;
        int premoldinspection = 0;
        int molding = 0;
        int postmoldcure = 0;
        int dejunktrim = 0;
        int solderplating = 0;
        int formsingulation = 0;

        try { visualinspection = Integer.parseInt(getVisualInspection()  );} catch (NumberFormatException ignore) {}
        try { dieattach = Integer.parseInt(getDieAttach()  ); } catch (NumberFormatException ignore) {}
        try { wirebond  = Integer.parseInt(getWireBond()  ); } catch (NumberFormatException ignore) {}
        try { premoldinspection = Integer.parseInt(getPreMoldInspection()  ); } catch (NumberFormatException ignore) {}
        try { molding   = Integer.parseInt(getMolding()  ); } catch (NumberFormatException ignore) {}
        try { postmoldcure  = Integer.parseInt(getPostMoldCure()  ); } catch (NumberFormatException ignore) {}
        try { dejunktrim = Integer.parseInt(getDejunkTrim()  ); } catch (NumberFormatException ignore) {}
        try { solderplating = Integer.parseInt(getSolderPlating()  ); } catch (NumberFormatException ignore) {}
        try { formsingulation = Integer.parseInt(getFormSingulation()  ); } catch (NumberFormatException ignore) {}

        return visualinspection + dieattach + wirebond + premoldinspection + molding + postmoldcure + dejunktrim + solderplating + formsingulation ;
  }

    public int getTestQtyIn()
    {
        int bufferstock = 0;
        int finaltest = 0;
        int finalvisualinspection = 0;


        try { bufferstock = Integer.parseInt(getBufferStock() ); } catch (NumberFormatException ignore) {}
        try { finaltest  = Integer.parseInt(getFinalTest()  ); } catch (NumberFormatException ignore) {}
        try { finalvisualinspection = Integer.parseInt(getFinalVisualInspection() ); } catch (NumberFormatException ignore) {}

        return bufferstock + finaltest + finalvisualinspection ;
    }

}